{"version":3,"sources":["ui.notification.stack.js"],"names":["BX","namespace","UI","Notification","Position","TOP_LEFT","TOP_CENTER","TOP_RIGHT","BOTTOM_LEFT","BOTTOM_CENTER","BOTTOM_RIGHT","Stack","options","type","isPlainObject","Object","create","this","balloons","queueStack","id","isNotEmptyString","util","getRandomString","toLowerCase","position","getPositionCode","spacing","offsetX","offsetY","newestOnTop","balloonType","Balloon","setOptions","addCustomEvent","Event","getFullName","handleBalloonClose","bind","code","prototype","adjustPosition","balloon","offset","getBalloons","forEach","currentBalloon","getPosition","getContainer","style","left","getOffsetX","top","getOffsetY","transform","right","bottom","getSpacing","getHeight","add","length","getQueue","isBalloonFitToViewport","queue","push","remove","balloonToRemove","filter","Error","indexOf","isNewestOnTop","splice","setState","State","QUEUED","checkQueue","slice","i","INIT","shift","show","viewportHeight","document","documentElement","clientHeight","balloonHeight","event","getBalloon","getStack","setSpacing","setOffsetX","setOffsetY","setNewestOnTop","setBalloonType","getId","isNumber","reduce","height","getBalloonType","className","isFunction","classFn","getClass","onTop","isBoolean"],"mappings":"CAAA,WAEA,aAEAA,GAAGC,UAAU,sBAMbD,GAAGE,GAAGC,aAAaC,UAClBC,SAAU,WACVC,WAAY,aACZC,UAAW,YACXC,YAAa,cACbC,cAAe,gBACfC,aAAc,gBAmBfV,GAAGE,GAAGC,aAAaQ,MAAQ,SAASC,GAEnCA,EAAUZ,GAAGa,KAAKC,cAAcF,GAAWA,EAAUG,OAAOC,OAAO,MAMnEC,KAAKC,YAMLD,KAAKE,cAELF,KAAKG,GAAKpB,GAAGa,KAAKQ,iBAAiBT,EAAQQ,IAAMR,EAAQQ,GAAKpB,GAAGsB,KAAKC,gBAAgB,GAAGC,cACzFP,KAAKQ,SAAWzB,GAAGE,GAAGC,aAAaQ,MAAMe,gBAAgBd,EAAQa,UAAYb,EAAQa,SAAW,YAEhGR,KAAKU,QAAU,GACfV,KAAKW,QAAU,GACfX,KAAKY,QAAU,GACfZ,KAAKa,YAAc,MACnBb,KAAKc,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